package com.hxzy.entity;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 
 * 订单明细表
 */
@Data
@KeySequence(value = "MALL_ORDER_ITEM_SEQ")
public class MallOrderItem implements Serializable {
    /**
     * 订单明细ID
     */
    @TableId(value = "order_item_id")
    private BigDecimal orderItemId;

    /**
     * 订单ID
     */
    private BigDecimal orderId;

    /**
     * 商品id
     */
    private BigDecimal goodsId;

    /**
     * 秒杀商品ID
     */
    private BigDecimal seckillId;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 商品图片
     */
    private String goodsCoverImg;

    /**
     * 商品价格
     */
    private Long sellingPrice;

    /**
     * 商品数量
     */
    private Long goodsCount;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    private static final long serialVersionUID = 1L;
}